<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2022-08-26
  Time: 10:14
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<table border="3" style="margin: 0 auto;border-collapse: collapse">
    <tr style="text-align: center">
        <td>类别</td>
        <td>品种</td>
        <td>产地</td>
        <td>总重量（公斤）</td>
        <td>单价（元/公斤）</td>
        <td>操作</td>
    </tr>
    <c:forEach var="fruit" items="${list}">
        <tr>
            <td>${fruit.type}</td>
            <td>${fruit.breed}</td>
            <td>${fruit.area}</td>
            <td>${fruit.weight}</td>
            <td>${fruit.price}</td>
            <td>
                <a href="FruitDetailServlet?id=${fruit.fruitId}">详情</a>
                <a href="#" onclick="dele(${fruit.fruitId})">删除</a>
            </td>
        </tr>
    </c:forEach>
</table>
</body>
</html>
